package com.trt.beibei.vo;

import com.trt.beibei.model.Category;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * @author tanrentao
 * @date 2021-08-11
 * @desc
 */
@Getter
@Setter
public class CategoryPureVO {

    private Long id;

    private String name;

    private Boolean isRoot;

    private String img;

    private Long parentId;

    private Long index;

    public CategoryPureVO(Category category) {
        BeanUtils.copyProperties(category, this);
    }
}
